[XEN] Avoid using regparm on a typedef.
authorIan Campbell <ian.campbell@xensource.com>
Thu, 23 Nov 2006 17:21:26 +0000 (17:21 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Thu, 23 Nov 2006 17:21:26 +0000 (17:21 +0000)
commitc8d3c51260a815be6121f9cdcef874a9b19dc612
tree198f66ccdad173e77d004421720dbc514825309c
parent23632743fdba214fa131bd49714013492d8b5cac
[XEN] Avoid using regparm on a typedef.

This does not work reliably across gcc versions. Workaround this by attaching
the regparm attribute to a variable instead.

Also since guest_to_host_gpr_switch() updates the guest EAX on the stack there
is no need to do so in emulate_privileged_op() as well. Therefore io_emul stub
now returns void.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen/arch/x86/traps.c